package naves;

import java.awt.Point;
import java.util.Random;

import javax.swing.ImageIcon;

import logica.SkyNet;

public class PowerUp extends Haaslich{

	public PowerUp(SkyNet ia){
		super(ia,1);
		this.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/powerUp.gif")));
		this.setSize(16,15);
		this.velocidad = 3;
		this.potencia = 0;
		this.vida = -1000;
		this.movimiento = new Point(0,velocidad);
		this.frecuencia = 80;
		this.esEnemigo=true;
		this.esEnemigoFinal=false;
		this.puntaje=250;
		this.esTiro=false;
		this.esPowerUp=true;
	}
	
	public void mover() {
		super.mover();
	}

	@Override
	public void reLocation() {
		Random rnd = new Random(System.currentTimeMillis());
		this.setLocation(rnd.nextInt(this.lord.getJuego().getWidth()), -1*this.getHeight());		
	}
	
}
